home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / usr_-_Usr_Files / INCLUDE / DLFCN.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  928b  |  42 lines

  1. #ifndef DLFCN_H
  2. #define DLFCN_H
  3.  
  4. #include <features.h>
  5.  
  6. /*
  7.  * Various defines and so forth for the dynamic linker
  8.  */
  9.  
  10. /* For dlopen () */
  11. #define RTLD_LAZY    1
  12. #define RTLD_NOW    2
  13. #define RTLD_GLOBAL    0x100
  14.  
  15. /* For dlsym */
  16. #define RTLD_NEXT    ((void *)-1)
  17.  
  18. __BEGIN_DECLS
  19.  
  20. /* The usual prototypes.  We use void * instead of the actual
  21.  * datatype - the user does not manipulate the handles at all.
  22.  */
  23.  
  24. extern void * dlopen __P((__const char * __filename, int __flag));
  25. extern __const char * dlerror __P((void));
  26. extern void * dlsym __P((void *, __const char *));
  27. extern int dlclose __P((void *));
  28.  
  29. typedef struct
  30. {
  31.   const char *   dli_fname;   /* filename */
  32.   void *         dli_fbase;   /*  base address of object */
  33.   const char *   dli_sname;   /* nearest symbol name */
  34.   void *         dli_saddr;   /* nearest symbol address */
  35. } Dl_info;
  36.  
  37. extern int dladdr __P((void * __address, Dl_info * __dlip )); 
  38.  
  39. __END_DECLS
  40.  
  41. #endif
  42.